# 给定的每年增长率
growth_rates = [0.384, 0.20, 0.16]

# 计算三年总的复利增长因子
total_growth_factor = (1 + growth_rates[0]) * (1 + growth_rates[1]) * (1 + growth_rates[2])

# 计算总的增长倍数
total_growth_multiplier = total_growth_factor

# 计算年复合增长率
n_years = 3
cagr = (total_growth_multiplier ** (1/n_years)) - 1

# 转换为百分比形式
cagr_percentage = cagr * 100

print(cagr_percentage)
